package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductMapper {
    List<Product> getProductList();
    List<Product> searchProductList(String keywords);
    Product getProductByItemid (String itemId);
    void insertProduct (Product product);
    void insertInventory (Product product);
    void deleteProduct (String itemId);
    void deleteInventory (String itemId);
    void updateProduct (Product product);
    void updateInventory (Product product);
    String getProductidByname (String name);
}
